From: Florian Müllner Date: Tue, 29 Mar 2011 11:32:53 +0000 (+0200) Subject: search-display: Fix getDragActorSource()/getDragActor() X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~8398 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=429f809b71caba206883758d967ca292b5981b04;p=gnome-shell.git search-display: Fix getDragActorSource()/getDragActor() The 'icon' property in search results' meta info has been replaced by a 'createIcon' property, adjust to this change. https://bugzilla.gnome.org/show_bug.cgi?id=645990 --- diff --git a/js/ui/searchDisplay.js b/js/ui/searchDisplay.js index f3d463a94..ffe9fa482 100644 --- a/js/ui/searchDisplay.js +++ b/js/ui/searchDisplay.js @@ -77,11 +77,12 @@ SearchResult.prototype = { }, getDragActorSource: function() { - return this.metaInfo['icon']; + // not exactly right, but alignment problems are hard to notice + return this._content; }, getDragActor: function(stageX, stageY) { - return new Clutter.Clone({ source: this.metaInfo['icon'] }); + return this.metaInfo['createIcon'](Main.overview.dash.iconSize); }, shellWorkspaceLaunch: function(params) {